package org.example.sys_weapons.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.example.Utils.ConsoleColorOutput;
import org.example.Utils.ConsoleStyle;
import org.example.sys_weapons.EternalReincarnation;
import org.example.sys_weapons.World;

@Data
@AllArgsConstructor
public class EntitiesDto {
    // 实体名称
    private String name;
    // 变为黄金裔
    private GoldenDescendantDto goldenDescendant;
    // 实体随机数
    private int random;

    // 实体变为黄金裔
    public GoldenDescendantDto becomeGoldenDescendant() {
        // 实现逻辑
        ConsoleColorOutput.output(ConsoleStyle.GREEN, "[逐火" + World.round + "年] 实体:“" + name + "” 已通过:" + goldenDescendant.getKindling() + "的试炼！");
        ConsoleColorOutput.output(ConsoleStyle.GREEN, "[逐火" + World.round + "年] 实体:“" + name + "” 接过:「" + goldenDescendant.getTheocratic() + "」的神权,已成为:" + goldenDescendant.getKindlingDescription());
        ConsoleColorOutput.outputLine(ConsoleStyle.CYAN, goldenDescendant.getEntitiesName() + " 的描述：" + goldenDescendant.getDescription());
        return goldenDescendant;
    }

}
